﻿@{
    Layout = null;
    var errorMsg = ViewBag.errorMsg;
}
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />

<style>
    .pageContent {
        background: #C6E6FD;
        width: 100%;
        height: 100%;
    }
    h5 {
        font-weight: 500;
        font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, "Microsoft Yahei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
        font-weight: 300;
        line-height: 1.2;
        color: #37474f;
    }
    .btn {
        display: inline-block;
        padding: 4px 12px;
        margin-bottom: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.6;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        -ms-touch-action: manipulation;
        touch-action: manipulation;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 3px;
    }
    .btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color;
        outline: 0;
        outline-offset: -2px;
    }

    .btn.focus, .btn:focus, .btn:hover {
        color: #76838f;
        text-decoration: none;
    }

    .btn.active, .btn:active {
        background-image: none;
        outline: 0;
        -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    }
    .btn-success {
        color: #fff;
        background-color: #50ae55;
        border-color: #50ae55;
    }

    .btn-success.focus, .btn-success:focus {
        color: #fff;
        background-color: #369b6f;
        border-color: #226246;
    }

    .btn-success:hover {
        color: #fff;
        background-color: #369b6f;
        border-color: #34936a;
    }

    .btn-success.active, .btn-success:active, .open > .dropdown-toggle.btn-success {
        color: #fff;
        background-color: #369b6f;
        border-color: #34936a;
    }

    .btn-success.active.focus, .btn-success.active:focus, .btn-success.active:hover, .btn-success:active.focus, .btn-success:active:focus, .btn-success:active:hover, .open > .dropdown-toggle.btn-success.focus, .open > .dropdown-toggle.btn-success:focus, .open > .dropdown-toggle.btn-success:hover {
        color: #fff;
        background-color: #2d805c;
        border-color: #226246;
    }

    .btn-success.active, .btn-success:active, .open > .dropdown-toggle.btn-success {
        background-image: none;
    }

    .btn-success.disabled.focus, .btn-success.disabled:focus, .btn-success.disabled:hover, .btn-success[disabled].focus, .btn-success[disabled]:focus, .btn-success[disabled]:hover, fieldset[disabled] .btn-success.focus, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:hover {
        background-color: #46be8a;
        border-color: #46be8a;
    }

    .btn-success .badge {
        color: #46be8a;
        background-color: #fff;
    }
</style>

<div class="pageContent">
    <img style="width:100%;margin-top:100px;" src="~/Content/webImgs/TraceSource/ExperienceCenter/ErrorImg.png" />
    <div style="text-align:center">
        <h5>@errorMsg</h5>
        <button class="btn btn-success" onclick="WindowBack()">回到上一页</button>
    </div>
</div>
<script>
    function WindowBack() {
        var Boolean_ = document.getElementsByClassName("pageContent")[0].parentNode == document.body;
        if(Boolean_){
             window.history.back()
        } else {
            UrlBack()
        }
       
    }
</script>